package com.jinmdz.fmis.api.api.model.transport;

import com.jinmdz.fmis.common.annotation.AnValidate;
import com.jinmdz.fmis.common.constant.EValidateCode;
import com.jinmdz.fmis.core.base.BaseBean;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 通用主键请求数据
 *
 * @author GaoXiangLiang
 * @date 2020-05-08 15:05
 */
@ApiModel(value = "按照车辆类型请求数据", description = "返回指定的类型包含的车辆信息")
public class TransportCarCodeData extends BaseBean {

    /**
     * 类型编码
     */
    @AnValidate(name = "类型编码", required = true, code = EValidateCode.NO_LESS_ZERO)
    @ApiModelProperty(value = "类型编码", name = "typeCode", position = 1)
    private Integer typeCode;

    /**
     * 主键
     */
    @AnValidate(name = "旧车辆id")
    @ApiModelProperty(value = "旧车辆id", name = "oldCarId", position = 1)
    private Integer oldCarId;

    public Integer getTypeCode() {
        return typeCode;
    }

    public TransportCarCodeData setTypeCode(Integer typeCode) {
        this.typeCode = typeCode;
        return this;
    }

    public Integer getOldCarId() {
        return oldCarId;
    }

    public TransportCarCodeData setOldCarId(Integer oldCarId) {
        this.oldCarId = oldCarId;
        return this;
    }
}
